<template>
  <div class="jebProu">
    <!-- 首页金融产品 -->
    <h3 v-text="promsg.title"></h3>
    <ul class="item-content">
      <li>
        <p :class="{'highlight':promsg.highlight}">
          <span>8.5</span>%
          <span>
            +0.80%
            <i></i>
          </span>
          <span></span>
        </p>
        <p>往期年化</p>
      </li>
      <li>
        <p>
          <span v-text="promsg.day"></span>天
        </p>
        <p>出借期限</p>
      </li>
      <li>
        <p>
          <span v-text="promsg.money"></span>元
        </p>
        <p>起诉金额</p>
      </li>
    </ul>
    <div class="jinDu">
      <p>
        <span :style="{width:promsg.bili}"></span>
      </p>
      <p>
        <span>已投入{{ promsg.bili }}%</span>
        <span>剩余{{ promsg.residu }}元可投</span>
      </p>
    </div>
  </div>
</template>

<script>
export default {
  name: "",
  data() {
    return {};
  },
  methods: {},
  props:['promsg']
};
</script>

<style lang='scss' scoped>
p {
  margin: 0px;
  padding: 0px;
}
.jebProu {
  background: #ffffff;
  margin-bottom: 0.07rem;
  padding: 0.05rem 0.15rem 0.15rem;
  margin-bottom: 0.15rem;
  & > h3 {
    padding-left: 0.2rem;
    background: url("../../public/images/jinebao.png") no-repeat 0px center;
    background-size: 0.13rem 0.13rem;
    font-size: 0.15rem;
    color: #444f4f;
    padding-left: 0.2rem;
  }
  & > ul {
    padding-top: 0.08rem;
    display: flex;
    margin-bottom: 0.1rem;
    li {
      font-size: 0.15rem;
      & > p:nth-of-type(1) {
        line-height: 0.38rem;

        & > span:nth-of-type(1) {
          font-size: 0.15rem;
        }
        & > span:nth-of-type(2) {
          font-size: 0.12rem;
        }
      }

      & > p:nth-of-type(2) {
        color: #949ead;
        font-size: 0.12rem;
        line-height: 0.16rem;
      }

      &:nth-of-type(1) {
        width: 40%;
        .highlight{
            color: #FF5555 !important;
        }
        p:nth-of-type(1) {
         color: #444F4F;
          span:nth-of-type(2) {
            position: relative;
            & > i {
              width: 0.51rem;
              height: 0.22rem;
              display: block;
              position: absolute;
              background: url("../../public/images/extra_bg.png") no-repeat
                center center;
              background-size: 0.51rem 0.22rem;
              top: -0.22rem;
              right: 0px;
            }
          }
          span:nth-of-type(3) {
            display: inline-block;
            width: 0.13rem;
            height: 0.13rem;
            background: url("../../public/images/notice_blue_icon.png")
              no-repeat center center;
            background-size: 0.13rem 0.13rem;
            margin-left: 0.05rem;
          }
        }
      }
      &:nth-of-type(n + 2) {
        width: 30%;
        p {
          text-align: center;
        }
        p:nth-of-type(1) {
          color: #444f4f;
        }
      }
    }
  }
}
.jinDu {
  & > p:nth-of-type(1) {
    height: 0.03rem;
    width: 100%;
    background: #dddddd;
    & > span {
      background: #25a9f0;
      display: block;
      height: 100%;
      width: 13%;
    }
  }
  & > p:nth-of-type(2) {
    color: #949dad;
    display: flex;
    justify-content: space-between;
    font-size: 0.12rem;
  }
}
</style>